<?php
$this->breadcrumbs=array(
	'Articles'=>array('/user/article/list'),
	'Create',
);

$this->menu=array(
	array('label'=>'List Article', 'url'=>array('index')),
	array('label'=>'Manage Article', 'url'=>array('admin')),
);

$cs=Yii::app()->clientScript;

$dir = Yii::getPathOfAlias('ext.ueditor');
$baseUrl = Yii::app()->getAssetManager()->publish($dir);
$cs->registerScriptFile($baseUrl.'/editor_all.js',CClientScript::POS_HEAD );
$cs->registerScriptFile($baseUrl.'/editor_config.js',CClientScript::POS_HEAD );

$dir = Yii::getPathOfAlias('ext.ueditor.themes.default');
$baseUrl = Yii::app()->getAssetManager()->publish($dir);
$cs->registerCssFile($baseUrl.'/ueditor.css');
?>

<script type="text/javascript">
    var ue = new UE.ui.Editor();
    ue.render('Article_content');
</script>

<h1>创建文章</h1>

<?php echo $this->renderPartial('_form', array('model'=>$model)); ?>